/*
 * @Author: jack-ZM
 * @Date: 2022-08-04 19:10:37
 * @LastEditors: jack-ZM
 * @LastEditTime: 2022-08-15 17:59:10
 * @FilePath: /vue3ts-admin-template/src/router/permissionModules/index.ts
 * @Description:基础权限路由菜单表（后台可随意更换位置 但是一级菜单含有layout是不能嵌套移动到其他菜单里）
 *
 * 注意: meta 里的 activeMenu 表示  要高亮的菜单路由index  代表类似详情依据父菜单存在是否注册，无需根据name与后台校验
 *  一级下面的路由可以随便后台配置
 * Copyright (c) 2022 by zsm smzhang@fiberhome.com, All Rights Reserved.
 */
import { RouteRecordRaw } from 'vue-router';
import Layout from '@/layout/index.vue';
import { shallowRef } from 'vue';
import { topOneRouters } from './topOne';
import { topTwoRouters } from './topTwo';
const permissionrRoutes: Array<RouteRecordRaw> = [
    // 首页s
    {
        path: '/home',
        name: 'home',
        component: shallowRef(Layout),
        meta: {
            title: '首页'
        },
        redirect: '/home/index',
        children: [
            {
                path: 'index',
                name: 'homeIndex',
                hidden: true,
                meta: {
                    title: '首页'
                },
                component: () => import(/* webpackChunkName: "home" */ '@/views/home/index.vue')
            }
        ]
    },
    //其他
    ...topOneRouters,
    ...topTwoRouters
];
export default permissionrRoutes;
